package com.example.springbootdemo.controller;

import com.example.springbootdemo.pojo.TestModel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @author lishijin
 * @Description TODO
 * @createTime 2024年01月17日 15:25:00
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/list")
    public List<TestModel> list() {
        TestModel testModel = new TestModel();
        testModel.setId("1");
        testModel.setDate(new Date());
        return Arrays.asList(testModel);
    }
}
